package presentacion;

/**
 *
 *
 */
public class ReporteEjecutivo extends javax.swing.JFrame {

    /** Creates new form ReporteEjecutivo */
    public ReporteEjecutivo() {
        initComponents();
        this.setLocationRelativeTo(null);
        this.lb_año.setVisible(false);
        this.lb_ciclo.setVisible(false);
        this.cb_año.setVisible(false);
        this.cb_ciclo.setVisible(false);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        bgRadio1 = new javax.swing.ButtonGroup();
        bgRadioGrupo2 = new javax.swing.ButtonGroup();
        rb_semestral = new javax.swing.JRadioButton();
        rb_anual = new javax.swing.JRadioButton();
        lb_año = new javax.swing.JLabel();
        lb_ciclo = new javax.swing.JLabel();
        rb_carrera = new javax.swing.JRadioButton();
        rb_facultad = new javax.swing.JRadioButton();
        jRadioButton3 = new javax.swing.JRadioButton();
        jRadioButton5 = new javax.swing.JRadioButton();
        jButton1 = new javax.swing.JButton();
        cb_año = new javax.swing.JComboBox();
        cb_ciclo = new javax.swing.JComboBox();
        jLabel2 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        btn_Cancelar = new javax.swing.JButton();

        setTitle("Reporte Ejecutivo");

        bgRadio1.add(rb_semestral);
        rb_semestral.setText("Semestral");
        rb_semestral.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_semestralActionPerformed(evt);
            }
        });

        bgRadio1.add(rb_anual);
        rb_anual.setText("Anual");
        rb_anual.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rb_anualActionPerformed(evt);
            }
        });

        lb_año.setText("Año");

        lb_ciclo.setText("Ciclo");

        bgRadioGrupo2.add(rb_carrera);
        rb_carrera.setText("Carrera");

        bgRadioGrupo2.add(rb_facultad);
        rb_facultad.setText("Facultad");

        bgRadioGrupo2.add(jRadioButton3);
        jRadioButton3.setText("Unidad Academica");

        bgRadioGrupo2.add(jRadioButton5);
        jRadioButton5.setText("Mes");

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/imagenes/Aceptar.png"))); // NOI18N
        jButton1.setText("Aceptar");
        jButton1.setName(""); // NOI18N

        cb_año.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2011" }));

        cb_ciclo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Ciclo 1", "Ciclo 2", " " }));

        jLabel2.setText("Seleccione el rango para generar el reporte");

        jLabel1.setText("Rango de Tiempo");

        jLabel3.setText("Rango de Espacio");

        btn_Cancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/presentacion/imagenes/Cancelar.png"))); // NOI18N
        btn_Cancelar.setText("Cancelar");
        btn_Cancelar.setName(""); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(19, 19, 19)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(rb_facultad)
                                    .addComponent(rb_carrera)))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(28, 28, 28)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(lb_año, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(rb_anual)
                                    .addComponent(lb_ciclo))))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGap(99, 99, 99)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jRadioButton5)
                                    .addComponent(jRadioButton3)))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(92, 92, 92)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(rb_semestral)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(cb_año, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(cb_ciclo, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(57, 57, 57)
                        .addComponent(jLabel2))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(111, 111, 111)
                        .addComponent(jLabel1))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(111, 111, 111)
                        .addComponent(jLabel3)))
                .addContainerGap())
            .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 325, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addComponent(btn_Cancelar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)
                .addComponent(jButton1)
                .addGap(44, 44, 44))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel1)
                .addGap(6, 6, 6)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rb_anual)
                    .addComponent(rb_semestral))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cb_año, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lb_año))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(cb_ciclo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lb_ciclo))
                .addGap(28, 28, 28)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel3)
                .addGap(10, 10, 10)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rb_carrera)
                    .addComponent(jRadioButton5))
                .addGap(29, 29, 29)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(rb_facultad)
                    .addComponent(jRadioButton3))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(btn_Cancelar))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void rb_anualActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_anualActionPerformed
       
        this.RangoTiempo();
    }//GEN-LAST:event_rb_anualActionPerformed

    private void rb_semestralActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rb_semestralActionPerformed
       
        this.RangoTiempo();
    }//GEN-LAST:event_rb_semestralActionPerformed

    /**
    * @param args the command line arguments
    */
  public void RangoTiempo(){
    if(this.rb_anual.isSelected()){
         this.lb_año.setVisible(true);
        this.cb_año.setVisible(true);
         this.lb_ciclo.setVisible(false);
        this.cb_ciclo.setVisible(false);
      }
    if(this.rb_semestral.isSelected()){
        this.lb_ciclo.setVisible(true);
        this.cb_ciclo.setVisible(true);
        this.lb_año.setVisible(true);
          this.cb_año.setVisible(true);
    }



  }



    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup bgRadio1;
    private javax.swing.ButtonGroup bgRadioGrupo2;
    private javax.swing.JButton btn_Cancelar;
    private javax.swing.JComboBox cb_año;
    private javax.swing.JComboBox cb_ciclo;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JRadioButton jRadioButton3;
    private javax.swing.JRadioButton jRadioButton5;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JLabel lb_año;
    private javax.swing.JLabel lb_ciclo;
    private javax.swing.JRadioButton rb_anual;
    private javax.swing.JRadioButton rb_carrera;
    private javax.swing.JRadioButton rb_facultad;
    private javax.swing.JRadioButton rb_semestral;
    // End of variables declaration//GEN-END:variables

}
